package cn.mulanbay.log.web.bean.request.operationLog;

import cn.mulanbay.common.bean.PageSearch;
import cn.mulanbay.persistent.enums.FunctionDataType;
import cn.mulanbay.persistent.enums.FunctionType;
import cn.mulanbay.persistent.enums.UrlType;
import cn.mulanbay.common.aop.FullEndDateTime;
import cn.mulanbay.persistent.query.CrossType;
import cn.mulanbay.persistent.query.Operator;
import cn.mulanbay.persistent.query.Query;

import java.util.Date;

public class OperationLogSearch extends PageSearch implements FullEndDateTime {

    @Query(column = "ip_address", op = Operator.LIKE, crossType = CrossType.OR)
    private String name;

    @Query(column = "paras", op = Operator.LIKE)
    private String paras;

    @Query(column = "user_id", op = Operator.EQ)
    public Long userId;

    @Query(column = "occur_end_time", op = Operator.GE)
    private Date startDate;

    @Query(column = "occur_end_time", op = Operator.LE)
    private Date endDate;

    @Query(column = "system_function_id", op = Operator.EQ)
    private Long functionId;

    @Query(column = "method", op = Operator.EQ)
    private String method;

    @Query(column = "id_value", op =Operator.EQ)
    private String idValue;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParas() {
        return paras;
    }

    public void setParas(String paras) {
        this.paras = paras;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Override
    public Date getEndDate() {
        return endDate;
    }

    @Override
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Long getFunctionId() {
        return functionId;
    }

    public void setFunctionId(Long functionId) {
        this.functionId = functionId;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIdValue() {
        return idValue;
    }

    public void setIdValue(String idValue) {
        this.idValue = idValue;
    }

}
